<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width:200px;
            height:200px;
            background-color:pink;
            border-radius: 10px;
        }
    </style>
</head>
<body>
    <div class="box">
        
    </div>
    <script>
        var box = document.querySelector(".box");
        box.ontouchstart = function (e){
            console.log(e);
            console.log(e.type,'<--touchstart type');
            console.log(e.target, '<--touchstart target');
        }
        
        box.ontouchmove = function (e) {
            console.log(e);
            // console.log(e.type,'<--touchmove type');
            // console.log(e.target, '<--touchmove target');

        }

        box.ontouchend = function (e) {
            console.log(e,'手指抬起触发ontouchend事件');
            console.log(e.type,'<--touchend type');
            console.log(e.target, '<--touchend target');


        }


        box.ontouchcancel =function (e) {
            console.log(e.type,'<--touchcancel type');
            console.log('ontouchcancel');
        }

        

    </script>
</body>
</html>